/*
 * @Author: your name
 * @Date: 2020-04-15 22:49:11
 * @LastEditTime: 2020-04-30 23:36:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cloudEdu\src\router\modules\courseware.js
 */
//个人中心
import course from "@/views/course";
export default {
  path: "/personalcenter",
  name: "personalcenter",
  component: course,
  redirect: { name: "personalcenter-index" },
  children: ((pre) => [
    // 首页
    { path: "index", name: `${pre}index`, component: () => import("@/views/personalCenter/index") },
    { path: "userInfo", name: `${pre}index`, component: () => import("@/views/personalCenter/pages/userInfo") },
    { path: "score", name: `${pre}score`, component: () => import("@/views/personalCenter/pages/score") },
    { path: "collect", name: `${pre}index`, component: () => import("@/views/personalCenter/pages/collect") },
    { path: "message", name: `${pre}index`, component: () => import("@/views/personalCenter/pages/message") },
    { path: "newList", name: `${pre}index`, component: () => import("@/views/personalCenter/news/list") },
    { path: "newDetail", name: `${pre}index`, component: () => import("@/views/personalCenter/news/details") },
  ])("personalcenter-"),
};
